<template>
  <!-- <van-cell is-link @click="showPopup"></van-cell> -->
  <van-popup v-model:show="show" @click="showPopup" style="width: 90%; background: transparent;"><img style="width: '80%'"
      src="http://www.higuang365.com/public/images/common/activity/2303/alert062_pro.jpg" />
    <!-- <div id="enterjd" @click="Enterfn">进入会场&gt;&gt;</div> -->
  </van-popup>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
  setup() {
    const $router = useRouter();
    const show = ref(
      JSON.parse(sessionStorage.getItem("alertshow2") as string)
        ? !JSON.parse(sessionStorage.getItem("alertshow2") as string)
        : true
    );
    sessionStorage.setItem("alertshow2", JSON.stringify(true));
    const showPopup = () => {
      show.value =
        !JSON.parse(sessionStorage.getItem("alertshow2") as string) && false;
    };
    const Enterfn = () => {
      $router.push({
        path: "/electrical",
      });
    };

    return {
      show,
      showPopup,
      Enterfn,
    };
  },
});
</script>
<style>
#enterjd {
  position: fixed;
  top: 36rem;
  left: 20rem;
  color: #fb8200;
  font-size: 2.5rem;
  font-weight: 900;
  /* 设置描边宽度及颜色 默认为字体内外描边 */
  /* text-stroke: 1px #fefefe; */
  /* 兼容Webkit(Chrome/Safari)内核浏览器的写法 */
  /* -webkit-text-stroke: 1px #f3f4f8; */
  text-shadow: rgb(253, 250, 250) 1px 0 0, rgb(250, 248, 248) 0 1px 0,
    rgb(250, 249, 249) -1px 0 0, rgb(252, 247, 247) 0 -1px 0;
  /* color: white;  */
  /* font-size: 40px;  */
  /* -webkit-text-stroke: 1px black; */
}
</style>
